package com.example.news2.home.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

public class ResultBeanData {

    @JSONField(name = "code")
    private Integer code;
    @JSONField(name = "msg")
    private String msg;
    @JSONField(name = "result")
    private ResultDTO result;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ResultDTO getResult() {
        return result;
    }

    public void setResult(ResultDTO result) {
        this.result = result;
    }

    public static class ResultDTO {
        @JSONField(name = "banner_info")
        private List<BannerInfoDTO> bannerInfo;
        @JSONField(name = "hot_info")
        private List<HotInfoDTO> hotInfo;

        public List<BannerInfoDTO> getBannerInfo() {
            return bannerInfo;
        }

        public void setBannerInfo(List<BannerInfoDTO> bannerInfo) {
            this.bannerInfo = bannerInfo;
        }


        public List<HotInfoDTO> getHotInfo() {
            return hotInfo;
        }

        public void setHotInfo(List<HotInfoDTO> hotInfo) {
            this.hotInfo = hotInfo;
        }


        public static class BannerInfoDTO {
            @JSONField(name = "image")
            private String image;
            @JSONField(name = "option")
            private Integer option;
            @JSONField(name = "type")
            private Integer type;
            @JSONField(name = "value")
            private ValueDTO value;

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }

            public Integer getOption() {
                return option;
            }

            public void setOption(Integer option) {
                this.option = option;
            }

            public Integer getType() {
                return type;
            }

            public void setType(Integer type) {
                this.type = type;
            }

            public ValueDTO getValue() {
                return value;
            }

            public void setValue(ValueDTO value) {
                this.value = value;
            }

            public static class ValueDTO {
                @JSONField(name = "url")
                private String url;

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }
            }
        }


        public static class HotInfoDTO {
            @JSONField(name = "cover_price")
            private String coverPrice;
            @JSONField(name = "figure")
            private String figure;
            @JSONField(name = "name")
            private String name;
            @JSONField(name = "product_id")
            private String productId;

            public String getCoverPrice() {
                return coverPrice;
            }

            public void setCoverPrice(String coverPrice) {
                this.coverPrice = coverPrice;
            }

            public String getFigure() {
                return figure;
            }

            public void setFigure(String figure) {
                this.figure = figure;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getProductId() {
                return productId;
            }

            public void setProductId(String productId) {
                this.productId = productId;
            }
        }

    }
}
